namespace QLKHCN.Models.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("NhiemVu")]
    public partial class NhiemVu
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public NhiemVu()
        {
            TienDoes = new HashSet<TienDo>();
        }

        public int ID { get; set; }

        [StringLength(50)]
        public string TenNhiemVu { get; set; }

        public int? LoaiNhiemVuID { get; set; }

        public int? CaNhanChuTriID { get; set; }

        public int? PhongBanID { get; set; }

        [StringLength(50)]
        public string SoHopDong { get; set; }

        [Column(TypeName = "smalldatetime")]
        public DateTime? NgayBatDau { get; set; }

        [Column(TypeName = "smalldatetime")]
        public DateTime? NgayKetThuc { get; set; }

        public int? ThoiHan { get; set; }

        public int? GiaTri { get; set; }

        public virtual LoaiNhiemVu LoaiNhiemVu { get; set; }

        public virtual NhanVien NhanVien { get; set; }

        public virtual PhongBan PhongBan { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<TienDo> TienDoes { get; set; }
    }
}
